﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="YigongSrhForm.aspx.cs" Inherits="App_Master_YigongSrhForm" Title="义工检索" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="table_border_line">
        <tr>
            <th colspan="3" align="left" style="text-align: left; height: 15px;">

                <script language="javascript">
                    (new TitleBar('SearchBar', '检索条件')).showBar();
                </script>

            </th>
        </tr>
        <tr>
        <td  style="text-align:center">
        
            <table class="table_border_line">
                <tr>
                    <td align="left" style="width: 360px; height: 11px">
                    </td>
                    <td align="right" style="width: 70px; height: 11px">
                    </td>
                    <td align="left" style="height: 11px">
                    </td>
                </tr>
      
                <tr>
                    <td align="left" style="width: 360px; height: 20px">
                    </td>
                    
                    <td align="right" style="width: 70px; height: 20px">
                    义工姓名：</td>
            
                    <td style="height: 20px;" align="left">
                        &nbsp;<asp:TextBox ID="txtName" runat="server" Width="125px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="left" style="width: 360px; height: 20px">
                    </td>
                    
                    <td align="right" style="width: 70px; height: 20px">
                    义工性别：</td>
            
                <td style=" height: 20px" align="left">
                    &nbsp;<asp:DropDownList ID="sex" runat="server" DataTextField="Content" DataValueField="DictNo">
                    </asp:DropDownList></td>
                 </tr>
                 <tr style="display:none;">
                     <td align="left" style="width: 360px; height: 20px">
                     </td>
                     
                     <td align="right" style="width: 70px; height: 20px">
                    出生日期：</td>
             
                    <td style=" height: 20px" align="left" >
                        &nbsp;<asp:TextBox ID="txtSendDate" runat="server" onfocus="new Calendar().show(this);"
             Width="92px" Height="15px"></asp:TextBox>～
                    <asp:TextBox ID="txtSendDateTo" runat="server" onfocus="new Calendar().show(this);"
             Width="86px" Height="14px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 360px; height: 25px">
                    </td>
                    
                    <td style="width: 70px; height: 25px">
                    </td>
           
                    <td style=" height: 25px">
            
                    &nbsp;<asp:Button ID="btnSeach" runat="server" CssClass="button"
                    Text="检 索" Width="60px" OnClick="btnSeach_Click" />
                    <asp:Button ID="txtAdd" runat="server" CssClass="button"
                    Text="新 建" Width="60px" OnClick="txtAdd_Click" /></td>
                </tr>              
            </table>
        </td>
      </tr>
    </table>
    <br />
    <table class="table_border_line">
    <tr>
    <td>
        <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            CssClass="GridView_table" DataKeyNames="YigongId" Width="100%" OnPageIndexChanging="viewSrhRst_PageIndexChanging" OnRowDeleting="viewSrhRst_RowDeleting" OnRowEditing="viewSrhRst_RowEditing">
            <Columns>
                <asp:BoundField DataField="NameC" HeaderText="义工姓名">
                    <ItemStyle CssClass="GridView_item_left" />
                    <HeaderStyle CssClass="GridView_head_grayblue" Width="230px" />
                </asp:BoundField>
                <asp:BoundField DataField="YigongSex" HeaderText="义工性别" >
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle CssClass="GridView_head_grayblue" Width="10%"/>
                </asp:BoundField>
                <asp:BoundField DataField="Birthday" HeaderText="出生日期" DataFormatString="{0:yyyy/MM/dd}" HtmlEncode="False">
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle CssClass="GridView_head_grayblue" Width="230px"/>
                </asp:BoundField>
                <asp:BoundField DataField="Job" HeaderText="义工职业">
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                </asp:BoundField>
                <asp:CommandField HeaderText="详细" ShowEditButton="True"  ButtonType="Image" EditImageUrl="~/images/info.gif">
                <HeaderStyle CssClass="GridView_head_grayblue" Width="50px" />
                                        <ItemStyle CssClass="GridView_item_center" />
                </asp:CommandField>                        
                <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle CssClass="GridView_head_grayblue" Width="50px" />
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Delete"
                            ImageUrl="~/images/delete.jpg" Text="Delete" OnClientClick="javascript:return window.confirm('是否删除该条信息？')"/>
                    </ItemTemplate>
                    </asp:TemplateField>
            </Columns>
            <PagerStyle HorizontalAlign="Right" />
        </asp:GridView>
    </td>
    </tr>
    </table>
</asp:Content>

